package cv.gzd.robot.pojo.po;



/**
 * @author Jun
 */
public class RobotState {
    private Integer robotID;
    private Integer power;
    private Double speed;
    private Integer moveCode;

    public Integer getRobotID() {
        return robotID;
    }

    public void setRobotID(Integer robotID) {
        this.robotID = robotID;
    }

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    public Double getSpeed() {
        return speed;
    }

    public void setSpeed(Double speed) {
        this.speed = speed;
    }

    public void setForward() {
        this.moveCode= StateCode.FORWARD.getCode();
    }

    public void setLeft() {
        this.moveCode= StateCode.LEFT.getCode();
    }

    public void setRight() {
        this.moveCode= StateCode.RIGHT.getCode();
    }

    public void setBackward() {
        this.moveCode= StateCode.BACKWARD.getCode();
    }

    public void setStop() {
        this.moveCode= StateCode.STOP.getCode();
    }

    public Integer getMoveCode() {
        return moveCode;
    }

}
